<template>
   <div>
     <div class="c2">
         <img class="im2" width="30px" @click="dde" src="../assets/back.png" alt="">
         频道管理
     </div>
     <div>
         <span>点击删除以下数据</span>
         <ul style="border:1px solid #ccc">
             <li v-for="item in arrr" :key="item">{{item}}</li>
         </ul>
         <span>点击新增数据</span>
         
     </div>
   </div>
</template>
<script>
export default {
   name: '',
   components: {
     
   },
   mixins: [],
   props: {
     
   },
   data() {
     return {
       arrr:[]
     }
   },
   computed: {
     
   },
   watch: {
     
   },
   mounted() {
     this.$store.dispatch('get')

     this.$axios({ 
        method: "get",
        url: "nav.json",
        
        params: {
       
        },
      })
        .then((res) => {
           
            // console.log(res);
            
            this.arrr = res.data.result
            // console.log(this.arr);
        })
        .catch((err) => {
          console.log(err);
        });
   },
   methods: {
     dde(){
         this.$router.push('/')
     }
   }
};
</script>
<style lang='scss' scoped>
* {
    margin: 0;
    padding: 0;

}
.c2 {
    background-color: #D43D3D;
    color:white;
    font-size: 18px;
    height: 50px;
    line-height: 50px;
    font-weight: 900;
    text-align: center;
    position: relative;
}
.im2 {
    position: absolute;
    left: 0;
    top:9px
}


</style>